*global folder "\\econ-san-fs\Home4\uctpkp0\SystemFolder\Windows7\Desktop"
global folder "C:\Dropbox"
local saved  "$folder\hrs\merge\"
local do "$folder\HRS\do files\"
local trackd "$folder\hrs\tracker\"
local wave1d "$folder\hrs\wave1\"
local wave2d "$folder\hrs\wave2\"
local wave3d "$folder\hrs\wave3\"
local wave4d "$folder\hrs\wave4\"
local wave5d "$folder\hrs\wave5\"
local wave6d "$folder\hrs\wave6\"
local wave7d "$folder\hrs\wave7\"
local wave8d "$folder\hrs\wave8\"
local wave9d "$folder\hrs\wave9\"
local wave10d "$folder\hrs\wave10\"
local wave11d "$folder\hrs\wave11\"
local wave12d "$folder\hrs\wave12\"
local wave13d "$folder\hrs\wave13\"

local aheadw1 "$folder\hrs\aheadw1\"
local aheadw2 "$folder\hrs\aheadw2\"


* Run all primary files
*do asset.do
*do demog.do
*do employ.do
*do exitassets.do
*do exithealutil.do
*do exitmedcost.do
*do healstat.do
*do healutil.do
*do income.do
*do insure.do
*do medcost.do
*do mortality.do
*do pension.do
*do retplans.do
*do tenure.do
*do unsettle.do


*exit
* Run Initial merge files
*do merge1.do
*do merge2.do
*do merge3.do

* Rand files
*do huswife.do
*do randreduce.do
do randcode.do

*Second Merge
do merge4.do
do merge5.do

*Insurance Impute
do insuranceimpute.do

*Final Merge
do merge6.do
do merge7.do

